import { requestType } from '~/config/enum.config';

const SERVICE = 'domain-service';
const CONTROLLER = 'entityIdStrategyConfigController';

export default {
  /**
   * 获取支持的实体ID策略字段
   */
  getEntityFields: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getEntityFields',
    type: requestType.Get,
  },
  /**
   * 查询实体ID
   */
  getEntityIdStrategyConfigList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getEntityIdStrategyConfigList',
    type: requestType.Get,
  },
  /**
   * 查询一条实体ID 
   */
  findEntityIdStrategyConfigById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findEntityIdStrategyConfigById',
    type: requestType.Get,
  },
  /**
   * 删除一条实体ID
   */
  deleteEntityIdStrategyConfigById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deleteEntityIdStrategyConfigById',
    type: requestType.Get,
  },
  /**
   * 查询实体ID审批记录 
   */
  findEntityIdStrategyConfigRecordHistory: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findEntityIdStrategyConfigRecordHistory',
    type: requestType.Get,
  },
  /**
   * 日志查询
   */
  getEntityIdStrategyConfigLogList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getEntityIdStrategyConfigLogList',
    type: requestType.Get,
  },
  /**
   * 保存实体ID
   */
  saveEntityIdStrategyConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'saveEntityIdStrategyConfig',
    type: requestType.Post,
  },
  /**
   * 实体ID停用/启用
   */
  updateEntityIdStrategyConfigState: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateEntityIdStrategyConfigState',
    type: requestType.Post,
  },
  /**
   * 通过id查找实体id详情
   */
  findEntityIdStrategyConfigLogById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findEntityIdStrategyConfigLogById',
    type: requestType.Get,
  },
};
